home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / Cinemorph.adf / Install < prev    next >
Text File  |  1992-09-01  |  5KB  |  193 lines

  1. ; Installer script for Cinemorph
  2.  
  3. (
  4.    ; Ask where to install it...
  5.    (set @default-dest
  6.       (askdir
  7.          (prompt "Select or create the directory where you would "
  8.                  "like to install Cinemorph.")
  9.          (help "Cinemorph and all necessary files will be installed "
  10.                "in the directory of your choice.  You may wish to "
  11.                "create a new directory for Cinemorph by using the "
  12.                "'Make New Drawer' gadget.")
  13.          (default "RAM:")
  14.       )
  15.    )
  16.  
  17.    ; Ask which version(s) to install...
  18.    (set todo
  19.       (askoptions
  20.          (prompt
  21.             "Choose which version of Cinemorph you would like "
  22.             "to install:")
  23.          (help "Two versions of Cinemorph are provided.  The "
  24.                "accelerated version (Cinemorph.FP) requires "
  25.                "a 68020/68881 or greater machine to function. "
  26.                "If you have such an accelerator, the accelerated "
  27.                "version of Cinemorph is considerably faster.")
  28.          (choices
  29.             "Cinemorph for Non-Accelerated Machines"
  30.             "Cinemorph for Accelerated Machines")
  31.       )
  32.    )
  33.  
  34.    (if (= todo 0)
  35.       (abort "Nothing to do.")
  36.    )
  37.  
  38.    (complete 0)
  39.  
  40.    ; Copy help file...
  41.    (copyfiles
  42.       (prompt "")
  43.       (help "")
  44.       (source ":Cinemorph/Cinemorph.guide")
  45.       (dest @default-dest)
  46.    )
  47.  
  48.    (complete 10)
  49.  
  50.    ; Copy 68000 version...
  51.    (if (<> todo 2)
  52.       (
  53.          (copyfiles
  54.             (prompt "")
  55.             (help "")
  56.             (source ":Cinemorph/Cinemorph")
  57.             (dest @default-dest)
  58.          )
  59.          (copyfiles
  60.             (prompt "")
  61.             (help "")
  62.             (source ":Cinemorph/Cinemorph.info")
  63.             (dest @default-dest)
  64.          )
  65.       )
  66.    )
  67.  
  68.    (complete 20)
  69.  
  70.    ; Copy FP version...
  71.    (if (<> todo 1)
  72.       (
  73.          (copyfiles
  74.             (prompt "")
  75.             (help "")
  76.             (source ":Cinemorph/Cinemorph.FP")
  77.             (dest @default-dest)
  78.          )
  79.          (copyfiles
  80.             (prompt "")
  81.             (help "")
  82.             (source ":Cinemorph/Cinemorph.FP.info")
  83.             (dest @default-dest)
  84.          )
  85.       )
  86.    )
  87.  
  88.    (complete 30)
  89.    (working "Checking for required libraries...")
  90.  
  91.    ; Copy all the libraries...
  92.    (copylib
  93.       (prompt "Copying iffparse.library to LIBS:")
  94.       (help "This library is required to load any IFF images.")
  95.       (source ":libs/iffparse.library")
  96.       (dest "LIBS:")
  97.    )
  98.  
  99.    (complete 40)
  100.  
  101.    (copylib
  102.       (prompt "Copying amigaguide.library to LIBS:")
  103.       (help "This library is required to use the online help "
  104.             "features of Cinemorph.")
  105.       (source ":libs/amigaguide.library")
  106.       (dest "LIBS:")
  107.    )
  108.  
  109.    (complete 50)
  110.  
  111.    (copylib
  112.       (prompt "Req.library:  Installation of this library is only "
  113.               "required if you plan to run Cinemorph under Workbench 1.3. "
  114.               "It is not needed under Workbench 2.0 or greater.")
  115.       (help "Select 'Proceed with Copy' to copy the indicated library "
  116.             "to your LIBS: directory, or 'Skip This Part' if you do "
  117.             "not need the library.")
  118.       (source ":libs/req.library")
  119.       (dest "LIBS:")
  120.       (confirm)
  121.    )
  122.  
  123.    (complete 60)
  124.  
  125.    (copylib
  126.       (prompt "Dctv.library:  Installation of this library is only "
  127.               "required if you intend to render images directly to "
  128.               "DCTV format.")
  129.       (help "Select 'Proceed with Copy' to copy the indicated library "
  130.             "to your LIBS: directory, or 'Skip This Part' if you do "
  131.             "not need the library.")
  132.       (source ":libs/dctv.library")
  133.       (dest "LIBS:")
  134.       (confirm)
  135.    )
  136.  
  137.    (complete 70)
  138.  
  139.    (copylib
  140.       (prompt "Hame.library:  Installation of this library is only "
  141.               "required if you intend to render images directly to "
  142.               "HAM-E format.  If you choose to install this library, "
  143.               "you must also install Renderhame.library.")
  144.       (help "Select 'Proceed with Copy' to copy the indicated library "
  145.             "to your LIBS: directory, or 'Skip This Part' if you do "
  146.             "not need the library.")
  147.       (source ":libs/hame.library")
  148.       (dest "LIBS:")
  149.       (confirm)
  150.    )
  151.  
  152.    (complete 80)
  153.  
  154.    (copylib
  155.       (prompt "Renderhame.library:  Installation of this library is only "
  156.               "required if you intend to render images directly to "
  157.               "HAM-E format.  You must install this library if you "
  158.               "chose to install Hame.library.")
  159.       (help "Select 'Proceed with Copy' to copy the indicated library "
  160.             "to your LIBS: directory, or 'Skip This Part' if you do "
  161.             "not need the library.")
  162.       (source ":libs/renderhame.library")
  163.       (dest "LIBS:")
  164.       (confirm)
  165.    )
  166.  
  167.    (complete 90)
  168.  
  169.    (if
  170.       (askbool
  171.          (prompt
  172.             "Do you want to copy over the sample project files "
  173.             "and images?")
  174.          (help "The sample projects and images may be used to "
  175.                "help get you started in Cinemorph.  They are the "
  176.                "ones referenced by the tutorials in the manual.")
  177.          (default 1)
  178.       )
  179.       (
  180.          (copyfiles
  181.             (prompt "")
  182.             (help "")
  183.             (source ":Samples")
  184.             (dest (tackon @default-dest "Samples"))
  185.             (all)
  186.          )
  187.       )
  188.    )
  189.  
  190.    (complete 100)
  191. )
  192.  
  193.